package com.wyzz.hr.pojo.base;

import com.wyzz.hr.pojo.Empsalaryacctitems;
import com.wyzz.hr.pojo.Empsalaryacctversion;
import com.wyzz.hr.pojo.Empsalarydatadef;

import java.io.Serializable;

public abstract class BaseEmpsalaryacctitems implements Serializable {

	public BaseEmpsalaryacctitems() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmpsalaryacctitems(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseEmpsalaryacctitems(String id, Empsalaryacctversion esaiEsav,
			Integer esaiDataSeq, Integer esaiDataIsCalc,
			Integer esaiDataRounding) {
		hashCode = 0x80000000;
		setId(id);
		setEsaiEsav(esaiEsav);
		setEsaiDataSeq(esaiDataSeq);
		setEsaiDataIsCalc(esaiDataIsCalc);
		setEsaiDataRounding(esaiDataRounding);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public Integer getEsaiDataSeq() {
		return esaiDataSeq;
	}

	public void setEsaiDataSeq(Integer esaiDataSeq) {
		this.esaiDataSeq = esaiDataSeq;
	}

	public Integer getEsaiDataIsCalc() {
		return esaiDataIsCalc;
	}

	public void setEsaiDataIsCalc(Integer esaiDataIsCalc) {
		this.esaiDataIsCalc = esaiDataIsCalc;
	}

	public String getEsaiDataCalc() {
		return esaiDataCalc;
	}

	public void setEsaiDataCalc(String esaiDataCalc) {
		this.esaiDataCalc = esaiDataCalc;
	}

	public Integer getEsaiDataRounding() {
		return esaiDataRounding;
	}

	public void setEsaiDataRounding(Integer esaiDataRounding) {
		this.esaiDataRounding = esaiDataRounding;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Empsalaryacctitems))
			return false;
		Empsalaryacctitems empsalaryacctitems = (Empsalaryacctitems) obj;
		if (null == getId() || null == empsalaryacctitems.getId())
			return false;
		else
			return getId().equals(empsalaryacctitems.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public Empsalarydatadef getEsaiEsdd() {
		return esaiEsdd;
	}

	public void setEsaiEsdd(Empsalarydatadef esaiEsdd) {
		this.esaiEsdd = esaiEsdd;
	}

	public Empsalaryacctversion getEsaiEsav() {
		return esaiEsav;
	}

	public void setEsaiEsav(Empsalaryacctversion esaiEsav) {
		this.esaiEsav = esaiEsav;
	}

	public static String REF = "Empsalaryacctitems";
	public static String PROP_ESAI_DATA_IS_CALC = "esaiDataIsCalc";
	public static String PROP_ESAI_ESDD = "esaiEsdd";
	public static String PROP_ESAI_DATA_ROUNDING = "esaiDataRounding";
	public static String PROP_ESAI_DATA_CALC = "esaiDataCalc";
	public static String PROP_ESAI_DATA_SEQ = "esaiDataSeq";
	public static String PROP_ESAI_ESAV = "esaiEsav";
	public static String PROP_ID = "id";
	private int hashCode;
	private String id;
	private Integer esaiDataSeq;
	private Integer esaiDataIsCalc;
	private String esaiDataCalc;
	private Integer esaiDataRounding;
	private Empsalarydatadef esaiEsdd;
	private Empsalaryacctversion esaiEsav;

}
